package com.hmall.user.service.impl;

import com.hmall.user.mapper.UserMapper;

import com.hmall.user.pojo.User;
import com.hmall.user.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * 功能描述：根据 username 获取用户的 ID
     *
     * @param username
     * @return：com.hmall.user.pojo.User
     */
    @Override
    public User seleceByUsername(String username) {
        return userMapper.selectByUsername(username);
    }

}
